#ifndef VOLUMETOOLWIDGET_H
#define VOLUMETOOLWIDGET_H

#include <QWidget>

namespace Ui {
class VolumeToolWidget;
}

class VolumeToolWidget : public QWidget
{
    Q_OBJECT

public:
    explicit VolumeToolWidget(QWidget *parent = nullptr);
    ~VolumeToolWidget();
    void setVolume(int volume);

private:
    void paintEvent(QPaintEvent *event);
signals:
    void volumeChanged(int volume);
private slots:
    void on_pushButton_clicked();

private:
    bool _noVolume = false;
    int _curVolume = 20;
    Ui::VolumeToolWidget *ui;
};

#endif // VOLUMETOOLWIDGET_H
